import axios from 'axios';
let base = '';
//提交完善信息数据
export const perfectuserinfo = params => {
  return axios.post(`${base}/api/v2/register/perfectuserinfo`, params).then(res => res.data);
};
//上传身份证
export const imagerecognition = params => {
  return axios.post(`${base}/api/v1/register/imagerecognition`, params).then(res => res.data);
};
//抖音绑定账号
export const register_dy = params => {
  return axios.post(`${base}/api/v1/user/register_dy`, params).then(res => res.data);
};
//拼多多绑定账号
export const register_pdd = params => {
  return axios.post(`${base}/api/v1/user/register_pdd`, params).then(res => res.data);
};
//拼多多验证
export const verificationpdd = params => {
  return axios.post(`${base}/api/v1/PI/task/verificationpdd`, params).then(res => res.data);
};
//提醒任务
export const RemindTask = params => {
  return axios.post(`${base}/api/v1/apprentice/remindtask`, params).then(res => res.data);
};
//Rank列表
export const RankList = params => {
  return axios.get(`${base}/api/v1/user/leaderboard`, params).then(res => res.data);
};
//
export const reminder_submit = params => {
  return axios.post(`${base}/api/v1/user/reminder_submit`, params).then(res => res.data);
};
//
export const reminder_no = params => {
  return axios.post(`${base}/api/v1/user/reminder_no`, params).then(res => res.data);
};
//上传淘气值
export const tbimageRecognition = params => {
  return axios.post(`${base}/api/v1/register/tbimageRecognition`, params).then(res => res.data);
};
//发送验证码
export const sendcode = params => {
  return axios.post(`${base}/api/register/sendcode`, params).then(res => res.data);
};
//获取用户信息
export const getuserinfo = params => {
  return axios.get(`${base}/api/v1/user/getuserinfo`, {
    params: params
  });
};
//获取平台通知列表
export const bulletin_list = params => {
  return axios.post(`${base}/api/v1/bulletin/bulletin_list`, params).then(res => res.data);
};
//提交申诉
export const initite_appeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/initite_appeal`, params).then(res => res.data);
};
//我发起的申诉
export const Appeallist = params => {
  return axios.post(`${base}/api/v1/PI/appeal/Appeallist`, params).then(res => res.data);
};
//我收到的申诉
export const receive_appeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/receive_appeal`, params).then(res => res.data);
};
//申诉待处理
export const dealwith_appeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/dealwith_appeal`, params).then(res => res.data);
};
//删除申诉
export const deleAppeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/deleAppeal`, params).then(res => res.data);
};
//客服中心
export const create_customer = params => {
  return axios.post(`${base}/api/v1/customer/create_customer`, params).then(res => res.data);
};
//申请任务
export const submessage = params => {
  return axios.post(`${base}/api/v1/PI/task/submessage`, params).then(res => res.data);
};
//获取任务状态
export const getuserstatus = params => {
  return axios.get(`${base}/api/v1/user/getuserstatus`, {
    params: params
  });
};
//领取任务
export const identifytask = params => {
  return axios.post(`${base}/api/v1/PI/user/identifytask`, params).then(res => res.data);
};
//额外任务
export const extra_task_list = params => {
  return axios.post(`${base}/api/v1/PI/extra/extra_task_list`, params).then(res => res.data);
};
//额外任务用户任务列表
export const task_extra_list = params => {
  return axios.post(`${base}/api/v1/PI/extra/task_extra_list`, params).then(res => res.data);
};
//额外任务详情页
export const task_extra_info = params => {
  return axios.post(`${base}/api/v1/PI/extra/task_extra_info`, params).then(res => res.data);
};
//额外任务领取
export const extra_task_receive = params => {
  return axios.post(`${base}/api/v1/PI/extra/extra_task_receive`, params).then(res => res.data);
};
//取消任务
export const cancelqueue = params => {
  return axios.post(`${base}/api/v1/PI/task/cancelqueue`, params).then(res => res.data);
};
//获取任务详情
export const taskprogress = params => {
  return axios.post(`${base}/api/v1/PI/task/taskprogress`, params).then(res => res.data);
};
//淘宝验证淘口令
export const verificationtkl = params => {
  return axios.post(`${base}/api/v1/PI/task/verificationtkl`, params).then(res => res.data);
};
//抖音验证淘口令
export const verificationdy = params => {
  return axios.post(`${base}/api/v1/PI/task/verificationdy`, params).then(res => res.data);
};
// 登录
export const Login = params => {
  return axios.post(`${base}/api/signin`, params).then(res => res.data);
};
// 注册
export const register = params => {
  return axios.post(`${base}/api/registered`, params).then(res => res.data);
};
//任务情况
export const prompttask = params => {
  return axios.post(`${base}/api/v1/task/prompttask`, params).then(res => res.data);
};
//我已付款
export const syncorder = params => {
  return axios.post(`${base}/api/v1/PI/order/syncorder`, params).then(res => res.data);
};
//任务进度取消任务
export const cancelTask = params => {
  return axios.post(`${base}/api/v1/PI/task/cancelTask`, params).then(res => res.data);
};
//额外任务取消任务
export const extra_task_cancel = params => {
  return axios.post(`${base}/api/v1/PI/extra/extra_task_cancel`, params).then(res => res.data);
};
//额外任务提交任务 /api/v1/PI/extra/extra_task_withdrawal
export const extra_task_submit = params => {
  return axios.post(`${base}/api/v1/PI/extra/extra_task_submit`, params).then(res => res.data);
};
//额外任务提现
export const extra_task_withdrawal = params => {
  return axios.post(`${base}/api/v1/PI/extra/extra_task_withdrawal`, params).then(res => res.data);
};
//任务管理
export const tasklist = params => {
  return axios.post(`${base}/api/v1/task/tasklist`, params).then(res => res.data);
};
//徒弟列表
export const apprenticelist = params => {
  return axios.post(`${base}/api/v1/apprentice/apprenticelist`, params).then(res => res.data);
};
//拉黑个人
export const laheApprentice = params => {
  return axios.post(`${base}/api/v1/apprentice/laheApprentice`, params).then(res => res.data);
};
//升级师傅
export const upgradeapprentice = params => {
  return axios.post(`${base}/api/v1/apprentice/upgradeapprentice`, params).then(res => res.data);
};
//暂停收徒
export const timeoutapprentice = params => {
  return axios.post(`${base}/api/v1/apprentice/timeoutapprentice`, params).then(res => res.data);
};
//授权
export const login = params => {
  return axios.post(`${base}/api/login`, params).then(res => res.data);
};
//新旧用户
export const oldphoneinfo = params => {
  return axios.post(`${base}/api/oldphoneinfo`, params).then(res => res.data);
};
//邀请二维码
export const verification_yqm = params => {
  return axios.post(`${base}/api/verification_yqm`, params).then(res => res.data);
};
//本金提现
export const capitalwithdraw = params => {
  return axios.post(`${base}/api/v1/PI/wxpay/capitalwithdraw`, params).then(res => res.data);
};
//提现授权
export const authorizedaddress = params => {
  return axios.post(`${base}/api/remind/payremind`, params).then(res => res.data);
}
//根据id获取任务
export const taskinfo = params => {
  return axios.post(`${base}/api/v1/PI/task/taskinfo`, params).then(res => res.data);
};
//获取邀请二维码
export const generate_img = params => {
  return axios.get(`${base}/api/v1/generate_img`, params).then(res => res.data);
};
//佣金提现到金库
export const businesstreasury = params => {
  return axios.post(`${base}/api/v1/PI/wxpay/businesstreasury`, params).then(res => res.data);
};
//佣金提现
export const businesspayment = params => {
  return axios.post(`${base}/api/v1/PI/wxpay/businesspayment`, params).then(res => res.data);
};
//资产明细
export const assetbreakdown = params => {
  return axios.post(`${base}/api/v1/wxpay/assetbreakdown`, params).then(res => res.data);
};
//确认重置操作密码
export const resetpaw = params => {
  return axios.post(`${base}/api/resetpaw`, params).then(res => res.data);
};
//更新状态
export const updateorderstatus = params => {
  return axios.post(`${base}/api/v1/PI/order/updateorderstatus`, params).then(res => res.data);
};
//上传支付宝
export const resetAliInfo = params => {
  return axios.post(`${base}/api/v1/resetAliInfo`, params).then(res => res.data);
};
//开启提醒
export const remindaddress = params => {
  return axios.post(`${base}/api/remind/remindaddress`, params).then(res => res.data);
};
//我已浏览
export const verification_problem = params => {
  return axios.post(`${base}/api/v1/PI/task/verification_problem`, params).then(res => res.data);
};
//我已浏览以及
export const audit_task = params => {
  return axios.post(`${base}/api/v1/PI/order/audit_task`, params).then(res => res.data);
};
//评价任务列表
export const evaluate_list = params => {
  return axios.post(`${base}/api/v1/PI/evaluate/List`, params).then(res => res.data);
};
//评价任务提现
export const evaluate_withdrawal = params => {
  return axios.post(`${base}/api/v1/PI/evaluate/withdrawal`, params).then(res => res.data);
};
//评价任务上传截图
export const evaluate_submit = params => {
  return axios.post(`${base}/api/v1/PI/evaluate/submit`, params).then(res => res.data);
};
//身份证校验
export const idcode_Info = params => {
  return axios.post(`${base}/api/v1/register/idcode_Info`, params).then(res => res.data);
};
//评论页面
export const evaluate_get = params => {
  return axios.post(`${base}/api/v1/PI/task/pjget`, params).then(res => res.data);
};
//提交评价
export const evaluate_post = params => {
  return axios.post(`${base}/api/v1/PI/task/pj_submit`, params).then(res => res.data);
};
//任务取消评价
export const evaluate_cancel = params => {
  return axios.post(`${base}/api/v1/PI/task/pjcancel`, params).then(res => res.data);
};
//登录注册 -- 邀请码
export const authorize_login = params => {
  return axios.post(`${base}/api/authorize_login`, params).then(res => res.data);
};
//校验订单价格
export const verificationPrice = params => {
  return axios.post(`${base}/api/v1/PI/task/verificationPrice`, params).then(res => res.data);
};
//提交升级充值审核
export const submerse_money = params => {
  return axios.post(`${base}/api/v1/apprentice/submerse_money`, params).then(res => res.data);
};
//抖音绑定多账号-列表
export const dy_user_list = params => {
  return axios.post(`${base}/api/v1/user/dy_user_list`, params).then(res => res.data);
};
//抖音任务-申请
export const dy_sub_message = params => {
  return axios.post(`${base}/api/v1/PI/task/dy_sub_message`, params).then(res => res.data);
};
//审核徒弟
export const examinePersonnel = params => {
  return axios.post(`${base}/api/v1/apprentice/examinePersonnel`, params).then(res => res.data);
}
// 催评价
export const urging_evaluation = params =>{
  return axios.post(`${base}/api/v1/PI/task/urging_evaluation`, params).then(res => res.data);
}
// 签名  /api/v1/user/register_ww
export const taskMessageSign = params =>{
  return axios.get(`${base}/api/remind/taskMessageSign`, params).then(res => res.data);
}
// 绑定多旺旺
export const register_ww = params =>{
  return axios.post(`${base}/api/v1/user/register_ww`, params).then(res => res.data);
}
//提交修改旺旺号
export const update_ww_name = params =>{
  return axios.post(`${base}/api/v1/user/update_ww_name`, params).then(res => res.data);
}
